package com.security.mapper;

import com.security.domain.po.Account;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 用户表映射器
 * persistence object mapper
 * 持久化对象映射器
 *
 * @author DblSun
 */
@SuppressWarnings("all")
@Mapper
public interface AccountMapper {
    @Select("select * from account where username = #{username}")
    Account getAccountByUsername(String username);

    @Select("select * from account where phone = #{phone}")
    Account getAccountByPhone(String phone);
}
